package com.aaa.controller;

import com.aaa.entity.Fsite;
import com.aaa.service.impl.FsiteServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("fsite")
public class FsiteController {
    @Resource
    FsiteServiceImpl impl;
    @RequestMapping("select")
    public List<Fsite> select(Integer fuser){
        return impl.select(fuser);
    }
    @RequestMapping("upadd")
    public boolean upadd(Fsite fsite){
        return impl.upadd(fsite);
    }
    @RequestMapping("del")
    public Integer del(Integer id){
        return impl.del(id);
    }
}
